package jm.nj.demo03mian.demo01;

public class Demo {
    public static void main(String[] args) {
        //接口不能创建对象Cannot instantice the type MyIterface
        //MyInterface  my = new MyInterface();
        //创建接口的实现类对象
        MyInterfaceImpl inter = new MyInterfaceImpl();
        inter.method();

        System.out.println(MyInterface.AAA_BBB_CCC);
        //从接口实现类中的对象来调取静态固定常量,无谓增加编译器解析成本.
        System.out.println(inter.AAA_BBB_CCC);

        //常量的值不能改变the final fieil MyInterface.AAA_BBB_CCC cannot be assigned
        //MyInterface.AAA_BBB_CCC =  10
    }
}
